// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// main.js是Vue项目的入口文件
import Vue from 'vue'
// swiper轮播图组件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

import App from './App'
// 引入 Vuex
import store from './store/index.js'
import router from './router' /* router是路由配置文件
会自动打开router下的index.js文件 */
// 对基础样式进行重置的css文件
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // 引入Vuex 因为对象键值相同 Es6语法可直接写键
  store,
  components: { App },
  template: '<App/>'
})
